package com.wm.exam.service.impl;

import com.wm.exam.dao.MajorMapper;
import com.wm.exam.pojo.Major;
import com.wm.exam.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorServiceImpl implements MajorService {
    @Autowired
    private MajorMapper majorMapper;

    /**
     * 查询可以使用的专业
     * @return
     */
    @Override
    public List<Major> getByStatus() {
        return majorMapper.getByStatus();
    }
}
